
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatReplyRequest struct {

	Type string `json:"type" form:"type"`

	Data string `json:"data" form:"data"`

	Status string `json:"status" form:"status"`

	Hide string `json:"hide" form:"hide"`

}

func (r *WechatReplyRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatReplyRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"type": "required",

		"data": "required",

		"status": "required",

		"hide": "required",

	}
}

func (r *WechatReplyRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatReplyRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatReplyRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
